package com.itheima.stock.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author zxh
 * @created 2024/11/1 15:17
 * @description
 */
@Data
@Component
@ConfigurationProperties(prefix = "id-worker.config")
public class IdWorkersProperties {
    private long machineId;
    private long datacenterId;
}
